#ifndef ELEVATORWIDGET_H
#define ELEVATORWIDGET_H

#include <QWidget>
#include"elevatorsystem.h"

QT_BEGIN_NAMESPACE
namespace Ui {
class ElevatorWidget;
}
QT_END_NAMESPACE

class ElevatorWidget : public QWidget
{
    Q_OBJECT

public:
    ElevatorWidget(QWidget *parent = nullptr);
    ~ElevatorWidget();

public slots:
    void updateStatus();
protected:
    void paintEvent(QPaintEvent *p);

private slots:
    void on_pushButton_19_clicked();

    void on_pushButton_17_clicked();

    void on_pushButton_15_clicked();

    void on_pushButton_13_clicked();
    void on_pushButton_11_clicked();
    void on_pushButton_9_clicked();
    void on_pushButton_7_clicked();
    void on_pushButton_5_clicked();
    void on_pushButton_3_clicked();


    void on_toolButton_11_clicked();

    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

    void on_pushButton_4_clicked();
    void on_pushButton_6_clicked();
    void on_pushButton_8_clicked();

    void on_pushButton_10_clicked();
    void on_pushButton_12_clicked();
    void on_pushButton_14_clicked();

    void on_pushButton_16_clicked();
    void on_pushButton_18_clicked();
    void on_pushButton_20_clicked();

    void on_toolButton_2_clicked();


private:
    Ui::ElevatorWidget *ui;
    QTimer *timer[2];
    ElevatorSystem* elevatorSystem;
    int currentFloor;
    map<int,string> m={{9,"toolButton_2"}};
};
#endif // ELEVATORWIDGET_H
